const BaseModel = require('./base_model.js');

class RechargeLevelModel extends BaseModel {}

RechargeLevelModel.CL = "ax_recharge_levels";

RechargeLevelModel.DB_STRUCTURE = {
  _pid: 'string|true',
  _id: 'string|true|comment=档位ID',
  level: 'int|true|comment=档位等级',
  amount: 'int|true|comment=充值金额(分)',
  bonus: 'int|true|default=0|comment=赠送金额(分)',
  totalAmount: 'int|true|comment=总金额(分)',
  description: 'string|true|comment=档位描述',
  
  // 状态管理
  status: 'int|true|default=1|comment=状态: 1-启用, 0-禁用',
  sortOrder: 'int|true|default=0|comment=排序顺序',
  
  createTime: 'int|true|comment=创建时间',
  updateTime: 'int|true|comment=更新时间',
};

RechargeLevelModel.STATUS = {
  DISABLED: 0,  // 禁用
  ENABLED: 1    // 启用
};

module.exports = RechargeLevelModel;
